using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using TomShane.Neoforce.Controls;

namespace Interface
{

    public class WindowManager
    {
        Manager manager;
        SideBar sideBar;
        public WindowManager(Game game, GraphicsDeviceManager graphics, List<string> units)
        {
            manager = new Manager(game, graphics);
            manager.Initialize();
            manager.LoadSkin("Default");
            sideBar = new SideBar(manager, units);
        }

        public void Draw(GameTime gameTime)
        {
            manager.Draw(gameTime);
        }
        public void Update(GameTime gameTime, GameWindow window)
        {
            sideBar.UpdateControls(gameTime);
        }
        public void ChangeRes()
        {
            sideBar.ChangeRes();
        }
    }
}
